package com.vehicle.controller;

import com.vehicle.bean.DataGridView;
import com.vehicle.bean.ResultDto;
import com.vehicle.service.InsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/insurance")
public class InsuranceController {
    @Autowired
    private InsuranceService insuranceService;
    //返回所有类型
    @ResponseBody
    @RequestMapping(value = "/insurances")
    public DataGridView allInsurance(){
        return insuranceService.findAllInsurance();
    }
}
